package com.mjfeed.dao.impl;

import org.springframework.stereotype.Repository;

import com.mjfeed.dao.ForumReplyDao;
import com.mjfeed.entity.ForumReply;
import com.mjfeed.entity.ForumTopic;

@Repository("forumReplyDao")
public class ForumReplyDaoImpl extends BaseDaoImpl<ForumReply> implements ForumReplyDao {

	@Override
	public void deleteAll(ForumTopic forumTopic) {
		executeJpql("delete from ForumReply forumReply where forumReply.forumTopicId=?", new Object[]{forumTopic.getId()});
	}

}
